﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ListNews.ascx.cs" Inherits="Controls_ListNews" %>


<link href="../css/MenuStyle.css" rel="stylesheet" type="text/css" />

<link href="../css/stylesheet.css" rel="stylesheet" type="text/css" />


<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
    
    SelectCommand="SELECT TOP (6) News_ID, News_Title, News_Status FROM News WHERE (News_Status = 1) ORDER BY News_ID DESC">
</asp:SqlDataSource>


<table class="infoBox_table" width="100%" border="0" cellpadding="0" cellspacing="0" >
  <tbody>
  <tr>
    <td class="infoBox_td">
    <table class="infoBoxContents_table" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody>
  <tr>
    <td class="boxText">
	<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
	    <tr>
            <td align="left" class="box_body box_body_td" style="width: 100%;">
            <ul>
            <br />
<asp:DataList ID="dtlNews" runat="server" Width="100%" 
    DataSourceID="SqlDataSource1" >
        <ItemTemplate>
             <table cellpadding="2" cellspacing="2">
                <tr>
                    <td class="result_right" style="vertical-align: top">&nbsp;&nbsp;
                    </td>
                    <td>
                        <asp:HyperLink ID="linktintuc" runat="server" Font-Bold="False" Font-Italic="False" 
                            NavigateUrl='<%# Eval("News_ID", "../Noidung.aspx?IDNew={0}") %>' CssClass="content"> 
                                <asp:Image ID="Image1" runat="server" Height="10px" ImageUrl="~/images/infoBoxHeading2_td.gif" CssClass="pic_ul" />
                                <%# Eval("News_Title") %>
                            </asp:HyperLink>
                    </td>
                </tr>
                <tr class="xemthem">
                    <td class="result_right">&nbsp;</td>
                    <td >
                            &nbsp;</td>
                </tr>
            </table>
</ItemTemplate>
</asp:DataList>
            </ul>
            </td>
        </tr>
        </tbody>
	</table>
	</td>
  </tr>
</tbody></table>
</td>
  </tr>
</tbody></table>